package in.iqing.model.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NoAutoIncrement;
import com.lidroid.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by ZuoShu on 15/7/9.
 */
@Table(name = "chapter")
public class Chapter implements Serializable {
    @Id
    @NoAutoIncrement
    @Column(column = "id")
    @JSONField(name = "id")
    private int id;

    @Column(column = "title")
    @JSONField(name = "title")
    private String title;

    @Column(column = "chapter_order")
    @JSONField(name = "order")
    private int order;

    @Column(column = "update_time")
    @JSONField(name = "update_time")
    private long updatedTime;

    @Column(column = "content_url")
    @JSONField(name = "content_url")
    private String contentUrl;

    private int total;

    @Column(column = "book_id")
    private int bookId;

    @Column(column = "volume_id")
    private int volumeId;

    public String getContentUrl() {
        return contentUrl;
    }

    public void setContentUrl(String contentUrl) {
        this.contentUrl = contentUrl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public int getVolumeId() {
        return volumeId;
    }

    public void setVolumeId(int volumeId) {
        this.volumeId = volumeId;
    }

    @Override
    public String toString() {
        return "Chapter{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", order=" + order +
                ", updatedTime=" + updatedTime +
                ", contentUrl='" + contentUrl + '\'' +
                ", total=" + total +
                ", bookId=" + bookId +
                ", volumeId=" + volumeId +
                '}';
    }
}
